package org.br.erp.rfq.xbj.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * @Description: 询价单
 * @Author: jeecg-boot
 * @Date:   2023-09-16
 * @Version: V1.0
 */
@ApiModel(value="scmxjd对象", description="询价单")
@Data
@TableName("scmxjd")
@Entity
public class Scmxjd implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    @Id
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
	/**城市*/
	@Excel(name = "城市", width = 15)
    @ApiModelProperty(value = "城市")
    private java.lang.String cityid;
	/**地区*/
	@Excel(name = "地区", width = 15)
    @ApiModelProperty(value = "地区")
    private java.lang.String regionid;
	/**车辆信息*/
	@Excel(name = "车辆信息", width = 15)
    @ApiModelProperty(value = "车辆信息")
    private java.lang.String vehicle;
	/**车牌号*/
	@Excel(name = "车牌号", width = 15)
    @ApiModelProperty(value = "车牌号")
    private java.lang.String plate;
	/**车架号*/
	@Excel(name = "车架号", width = 15)
    @ApiModelProperty(value = "车架号")
    private java.lang.String vin;
	/**行车证图片*/
	@Excel(name = "行车证图片", width = 15)
    private transient java.lang.String licenseimageString;

    private byte[] licenseimage;

    public byte[] getLicenseimage(){
        if(licenseimageString==null){
            return null;
        }
        try {
            return licenseimageString.getBytes("UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return null;
    }

    public String getLicenseimageString(){
        if(licenseimage==null || licenseimage.length==0){
            return "";
        }
        try {
            return new String(licenseimage,"UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return "";
    }
	/**事故号*/
	@Excel(name = "事故号", width = 15)
    @ApiModelProperty(value = "事故号")
    private java.lang.String accidentNumber;
	/**事故图片*/
	@Excel(name = "事故图片", width = 15)
    private transient java.lang.String accidentimagesString;

    private byte[] accidentimages;

    public byte[] getAccidentimages(){
        if(accidentimagesString==null){
            return null;
        }
        try {
            return accidentimagesString.getBytes("UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return null;
    }

    public String getAccidentimagesString(){
        if(accidentimages==null || accidentimages.length==0){
            return "";
        }
        try {
            return new String(accidentimages,"UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return "";
    }
	/**单据状态*/
	@Excel(name = "单据状态", width = 15)
    @ApiModelProperty(value = "单据状态")
    private java.lang.String status;
	/**审核状态*/
	@Excel(name = "审核状态", width = 15)
    @ApiModelProperty(value = "审核状态")
    private java.lang.String auditstatus;
	/**配件数量*/
	@Excel(name = "配件数量", width = 15)
    @ApiModelProperty(value = "配件数量")
    private java.math.BigDecimal partcount;
	/**报案号*/
	@Excel(name = "报案号", width = 15)
    @ApiModelProperty(value = "报案号")
    private java.lang.String bah;
	/**修理厂地址*/
	@Excel(name = "修理厂地址", width = 15)
    @ApiModelProperty(value = "修理厂地址")
    private java.lang.String xlcaddress;
	/**修理厂联系方式*/
	@Excel(name = "修理厂联系方式", width = 15)
    @ApiModelProperty(value = "修理厂联系方式")
    private java.lang.String xlclink;

    @ApiModelProperty(value = "city路径全名")
    private String fullcityname;


    @Column(length = 500)
    @ApiModelProperty(value = "地区驳回意见")
    private String regionrejectreason;

    @Column(length = 500)
    @ApiModelProperty(value = "省公司驳回意见")
    private String provicerejectreason;


    @Column(length = 4000)
    @ApiModelProperty(value = "需报价供应商")
    private String reqvendorid;

    @Column(length = 5000)
    @ApiModelProperty(value = "需报价供应商名称")
    private String reqvendorname;

    @Column(length = 50)
    private String billcode;

    @Column(length = 50)
    private String createbyname;
}
